package cn.jwcat.service.impl;

import cn.jwcat.dealEntity.DealVolunteer;
import cn.jwcat.entity.Volunteer;
import cn.jwcat.mapper.VolunteerMapper;
import cn.jwcat.service.IVolunteerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service
public class VolunteerServiceImpl extends ServiceImpl<VolunteerMapper, Volunteer> implements IVolunteerService {

	@Override
	public List<Volunteer> getVolunteer() {
		return this.getBaseMapper().getVolunteer();
	}

	@Override
	public List<Volunteer> queryVol(DealVolunteer dealVolunteer) {
		return this.getBaseMapper().query(dealVolunteer);
	}

	@Override
	public DealVolunteer getVolById(int id) {
		return this.getBaseMapper().getById(id);
	}
}
